package com.ysd.entity;

public class Shopping {
	private Integer id;
	private Integer userId;
	private Integer productId;
	private Integer num;
	
	private User user;
	private Product product;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public Shopping(Integer id, Integer userId, Integer productId, Integer num, User user, Product product) {
		super();
		this.id = id;
		this.userId = userId;
		this.productId = productId;
		this.num = num;
		this.user = user;
		this.product = product;
	}
	public Shopping() {
		super();
	}
	@Override
	public String toString() {
		return "Shopping [id=" + id + ", userId=" + userId + ", productId=" + productId + ", num=" + num + ", user="
				+ user + ", product=" + product + "]";
	}
	
}
